<template>
	<view>
		<cu-custom bgColor="bg-gradual-pink" :isBack="true"><block slot="backText">返回</block>
			<block slot="content">组织方信息</block>
		</cu-custom>
		<view>
			<view class="cu-form-group">
				<view class="title">主办方</view>
				{{spoinfo.main_sponsor}}
			</view>
			<view class="cu-form-group">
				<view class="title">协办方</view>
				{{spoinfo.second_sponsor}}
			</view>
			<view class="cu-form-group">
				<view class="title">赞助商</view>
				{{spoinfo.help_sponsor}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(option) {
			this.mid=option.mid;
			console.log(this.mid);
			uni.request({
				url:"https://www.52tennis.cn/Match/GetMatchSponser",
				data: {
					matchid:option.mid
				},
				success:(data)=> {
					console.log(data);
					if(data.data.result==1){
						this.spoinfo=data.data.returnjson;
					}else{
						uni.showToast({
							title: '数据错误',
							icon: 'fail',
							mask: true,
							duration: 3000
						})
					}
				},
			})
		},
		data() {
			return {
				mid:0,
				spoinfo:{}
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
